﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using HandLab.Mvc3App.Aspx.Models;
using HandLab.Mvc3App.Aspx.Models.Interfaces;
using HandLab.Mvc3App.Aspx.Models.Entities;

namespace HandLab.Mvc3App.Aspx.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ICategoryService ser = ServiceBuilder.BuildCategoryService();
            ViewData["Categories"] = ser.GetAll();

            return View("~/Aspx/Views/Home/Index.aspx");
        }
    }
}